<!DOCTYPE html>
<html lang="zh">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>空间转换-旋转</title>
  <style>
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    .box {
      margin: 100px;
      width: 600px;
      height: 320px;
      border: 1px solid #00f;
      /* 视距 */
      perspective: 1000px;
    }

    .box img {
      width: 100%;
      height: 100%;
      transition: all .5s;
    }

    .box:nth-child(1) img:hover {
      transform: rotateZ(30deg);
    }

    .box:nth-child(2) img:hover {
      transform: rotateX(30deg);
    }

    .box:nth-child(3) img:hover {
      transform: rotateY(-30deg);
    }
  </style>
</head>

<body>
  <div class="box">
    <img src="../../素材/images/AI01.png" alt="">
  </div>
  <div class="box">
    <img src="../../素材/images/AI01.png" alt="">
  </div>
  <div class="box">
    <img src="../../素材/images/AI01.png" alt="">
  </div>
</body>

</html>